﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using QLNS.Class;
using QLNS.DanhMuc;
using QLNS.HeThong;
using QLNS.NghiepVu;
namespace QLNS
{
    public partial class Main : Form
    {
        DB cn = new DB();
        public Main()
        {
            InitializeComponent();
        }

        private void Main_Load(object sender, EventArgs e)
        {
            if (cn.KetNoi())
            {
                //frmDangNhap frmDangNhap = new frmDangNhap();
                //frmDangNhap.ShowDialog();
                //frmCauHinh frmCauHinh = new frmCauHinh();
                //frmCauHinh.ShowDialog(); 
                //frmDonVi frmDonDatHang = new frmDonVi();
                //frmDonDatHang.ShowDialog();
            }
        }

        private void menuDonVi_Click(object sender, EventArgs e)
        {
            frmDonVi frmdonvi = new frmDonVi();
            frmdonvi.ShowDialog();
        }

        private void menuChuVu_Click(object sender, EventArgs e)
        {
            frmChucVu frmchucvu = new frmChucVu();
            frmchucvu.ShowDialog();
        }

        private void menuCoQuan_Click(object sender, EventArgs e)
        {
            frmCoQuan frmcoquan = new frmCoQuan();
            frmcoquan.ShowDialog();
        }

        private void menuCVDoan_Click(object sender, EventArgs e)
        {
            frmChucVuDoan frmcvdoan = new frmChucVuDoan();
            frmcvdoan.ShowDialog();
        }

        private void menuCVDang_Click(object sender, EventArgs e)
        {
            frmChucVuDang frmcvdang = new frmChucVuDang();
            frmcvdang.ShowDialog();
        }

        private void trìnhĐộNgoạiNgữToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmTrinhDoNN frmtrinhdoNN = new frmTrinhDoNN();
            frmtrinhdoNN.ShowDialog();
        }

        private void menuNgoaiNgu_Click(object sender, EventArgs e)
        {
            frmNgoaiNgu frmngoaingu = new frmNgoaiNgu();
            frmngoaingu.ShowDialog();
        }

        private void manuLoaiHD_Click(object sender, EventArgs e)
        {
            frmLoaiHD frmloaihd = new frmLoaiHD();
            frmloaihd.ShowDialog();
        }

        private void menuTonGiao_Click(object sender, EventArgs e)
        {
            frmTonGiao frmtongiao = new frmTonGiao();
            frmtongiao.ShowDialog();
        }

        private void menuQueQuan_Click(object sender, EventArgs e)
        {
            frmQueQuan frmquequan = new frmQueQuan();
            frmquequan.ShowDialog();
        }

        private void menuKhenThuongKyLuat_Click(object sender, EventArgs e)
        {
            frmKhenThuongKyLuat frmKhenPhat = new frmKhenThuongKyLuat();
            frmKhenPhat.ShowDialog();
        }

        private void menuXa_Click(object sender, EventArgs e)
        {
            frmXa frmxa = new frmXa();
            frmxa.ShowDialog();
        }

        private void menuDanToc_Click(object sender, EventArgs e)
        {
            frmDanToc frmdantoc = new frmDanToc();
            frmdantoc.ShowDialog();
        }

        private void menuTrinhDo_Click(object sender, EventArgs e)
        {
            frmTrinhDo frmtrinhdo = new frmTrinhDo();
            frmtrinhdo.ShowDialog();

        }

        private void menuChuyenMon_Click(object sender, EventArgs e)
        {
            frmChuyenMon frmchuyenmon = new frmChuyenMon();
            frmchuyenmon.ShowDialog();
        }

        private void hồSơNhânViênToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmHoSoNhanVien frmHoSoNhanVien=new frmHoSoNhanVien();
            frmHoSoNhanVien.ShowDialog();
        }

        private void khenThưởngKỷLuậtToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmCTKhenThuongKyLuat frmCTKhenThuongKyLuat = new frmCTKhenThuongKyLuat();
            frmCTKhenThuongKyLuat.ShowDialog();
        }
    }
}
